-- GENERATED SPELL FOR [Mechanar Driller] --


function spell0_19712(pUnit, Event) --@Drill Armor,n/a--
pUnit:FullCastSpellOnTarget(35047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19712', 30307, 1)
end

function Sorts_19712(pUnit, Event)
local choix_sorts_19712 = math.random(0, 0)
if choix_sorts_19712 == 0 then
pUnit:RegisterEvent('spell0_19712', 1, 1)
end
end

function mob19712_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19712', math.random(1500, 3000), 1)
end

function mob19712_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19712_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19712_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19712, 1, 'mob19712_Action')
RegisterUnitEvent(19712, 2, 'mob19712_Leave')
RegisterUnitEvent(19712, 3, 'mob19712_Kill')
RegisterUnitEvent(19712, 4, 'mob19712_Die')
